<!-- INCLUDE overall_header.html -->
<script type="text/javascript">
	function calculate()
	{
		var tm = document.getElementById("game_time_mgt");
		var rl = document.getElementById("game_round_length");
		var ticks = document.getElementById("game_ticks_left");

		ticks.value = ((Math.floor(60 / tm.value) * 24) * rl.value);
		return false;
	}	
</script>

<a name="maincontent"></a>
	
	<h1>{L_GAME_CONSOLE_MANAGE}</h1>

	<p>{L_GAME_CONSOLE_MANAGE_EXPLAIN}</p>
	
{ERROR_MSGS}


<!-- IF not S_GAME_SELECTED -->
	<form id="acp_gameconsole" name="acp_gameconsole" method="post" action="{U_ACTION}">	
		<fieldset>
			<legend>{L_GAME_CONSOLE_MANAGE_GAMES}</legend>
				<dl>
					<dt>
						<label for="text_color">{L_GAME_CONSOLE_MANAGE_SELECT_GAME}: </label>
					</dt>
					<dd>
						<select name="gameid">{GAME_OPTIONS}</select>			
					</dd>
				</dl>															
		</fieldset>
		<p class="submit-buttons">
			<input class="button1" type="submit" id="select" name="select" value="{L_SELECT}" />
		</p>
		{S_FORM_TOKEN}
	</form>
<!-- ELSE -->
	<form id="acp_gameconsole" name="acp_gameconsole" method="post" action="{U_ACTION}">
		<input type="hidden" name="gameid" value="{GAME_ID}">	
		<fieldset>
			<legend><strong>{L_GAME_CONSOLE_MANAGE_EDIT}</strong></legend>
				<dl>
					<dt>
						<label for="game_name">{L_GAME_CONSOLE_GAME_NAME}: </label>
					</dt>
					<dd>{GAME_NAME}</dd>
				</dl>
				<dl>
					<dt>
						<label for="id">{L_GAME_CONSOLE_GAME_ID}: </label>
					</dt>
					<dd>{GAME_ID}</dd>
				</dl>											
				<dl>
					<dt>
						<label for="game_online">{L_GAME_CONSOLE_STATUS}: </label>
					</dt>
					<dd>
						<input type="radio" name="game_online" value="0" <!-- IF S_GAME_ONLINE == 0 --> CHECKED <!-- ENDIF --> >{L_GAME_CONSOLE_STATUS_1}<br />
						<input type="radio" name="game_online" value="1" <!-- IF S_GAME_ONLINE == 1 --> CHECKED <!-- ENDIF --> >{L_GAME_CONSOLE_STATUS_2}<br />
						<input type="radio" name="game_online" value="2" <!-- IF S_GAME_ONLINE == 2 --> CHECKED <!-- ENDIF --> >{L_GAME_CONSOLE_STATUS_3}
					</dd>
				</dl>
				
				<dl>
					<dt>
						<label for="game_open">{L_GAME_CONSOLE_SIGNUPS}: </label>
					</dt>
					<dd>
						<input type="radio" name="game_open" value="0" <!-- IF S_GAME_OPEN == 0 --> CHECKED <!-- ENDIF --> >{L_NO}<br />
						<input type="radio" name="game_open" value="1" <!-- IF S_GAME_OPEN == 1 --> CHECKED <!-- ENDIF --> >{L_YES}
					</dd>
				</dl>											
				
				<dl>
					<dt>
						<label for="game_member_slots">{L_GAME_CONSOLE_SLOTS}: </label>
					</dt>
					<dd>
						<input type="text" name="game_member_slots" value="{GAME_MEMBER_SLOTS}" size="4" maxlength="4"> {L_GAME_CONSOLE_SLOTS_EXPLAIN}													
					</dd>
				</dl>
				
				<dl>
					<dt>
						<label for="game_time_mgt">{L_GAME_CONSOLE_TIME_MGT}: </label>
					</dt>
					<dd>
						<select name="game_time_mgt" id="game_time_mgt" value="{GAME_TIME_MGT}">
							<option value="5" <!-- IF S_GAME_TIME_MGT == 5 --> SELECTED <!-- ENDIF --> >5 Minute Ticks</option>
							<option value="10" <!-- IF S_GAME_TIME_MGT == 10 --> SELECTED <!-- ENDIF --> >10 Minute Ticks</option>
							<option value="15" <!-- IF S_GAME_TIME_MGT == 15 --> SELECTED <!-- ENDIF --> >15 Minute Ticks</option>
							<option value="30" <!-- IF S_GAME_TIME_MGT == 30 --> SELECTED <!-- ENDIF --> >30 Minute Ticks</option>
							<option value="60" <!-- IF S_GAME_TIME_MGT == 60 --> SELECTED <!-- ENDIF --> >60 Minute Ticks</option>														
						</select><br />
						{L_GAME_CONSOLE_TIME_MGT_EXPLAIN}													
					</dd>
				</dl>											

				<dl>
					<dt>
						<label for="game_round_length">{L_GAME_CONSOLE_ROUND_LENGTH}: </label>
					</dt>
					<dd>
						<input type="text" name="game_round_length" id="game_round_length" value="{GAME_ROUND_LENGTH}" size="10" maxlength="10"><br />
						{L_GAME_CONSOLE_ROUND_LENGTH_EXPLAIN}												
					</dd>
				</dl>
								
				<dl>
					<dt>
						<label for="game_ticks_left">{L_GAME_CONSOLE_TICKS_LEFT}: </label>
					</dt>
					<dd>
						<input type="text" name="game_ticks_left" id="game_ticks_left" value="{GAME_TICKS_LEFT}" size="10" maxlength="10"> 
						<input class="button1" type="submit" value="{L_GAME_CONSOLE_MANAGE_CALCULATE}" onclick="return calculate()">
						<br />
						{L_GAME_CONSOLE_TICKS_LEFT_EXPLAIN}													
					</dd>
				</dl>											
				
				<dl>
					<dt>
						<label for="game_round">{L_GAME_CONSOLE_ROUND}: </label>
					</dt>
					<dd>
						<input type="text" name="game_round" value="{GAME_ROUND}" size="4" maxlength="4">												
					</dd>
				</dl>
											
				<dl>
					<dt>
						<label for="game_bulletin">{L_GAME_CONSOLE_BULLETIN}: </label>
					</dt>
					<dd>
						<input type="text" name="game_bulletin" value="{GAME_BULLETIN}" size="100" maxlength="255"><br />
						{L_GAME_CONSOLE_BULLETIN_EXPLAIN}												
					</dd>
				</dl>											
															
				
				<dl>
					<dt>
						<label for="game_bulletin_show">{L_GAME_CONSOLE_BULLETIN_SHOW}: </label>
					</dt>
					<dd>
						<input type="radio" name="game_bulletin_show" value="0" <!-- IF S_BULLETIN_SHOW == 0 --> CHECKED <!-- ENDIF --> >{L_NO}<br />
						<input type="radio" name="game_bulletin_show" value="1" <!-- IF S_BULLETIN_SHOW == 1 --> CHECKED <!-- ENDIF --> >{L_YES}
					</dd>
				</dl>																																		
		</fieldset>
		<center>
			{L_NOTE1}
		</center>
			
		<p class="submit-buttons">
			<input class="button1" type="submit" id="update" name="update" value="{L_UPDATE}" />
		</p>
		{S_FORM_DATA}
		{S_FORM_TOKEN}							
<!-- ENDIF -->
							
<!-- INCLUDE overall_footer.html -->
